;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.3.1 #8717 (Jun 16 2013) (MINGW32)
; This file was generated Mon Sep 30 16:29:23 2013
;--------------------------------------------------------
	.module main_bluetooth
	.optsdcc -mmcs51 --model-large
	
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
	.globl _ADC0_ISR
	.globl _PCA0_ISR
	.globl _Timer2_ISR
	.globl _main
	.globl __sdcc_external_startup
	.globl _Init_Device
	.globl _InitPositionControlVariables
	.globl _InitTrajectoryControlVariables
	.globl _DirectKinematics
	.globl _InitKinematicsVariables
	.globl _PrepareNextRotationalSpeedMeasurement
	.globl _GetRotationalSpeeds
	.globl _InitGlobalVariables
	.globl _RotationalSpeedControl
	.globl _InitRotationalSpeedControlVariables
	.globl _ButtonState
	.globl _NSS4
	.globl _DIR3B1
	.globl _DIR3B0
	.globl _DIR2B1
	.globl _DIR2B0
	.globl _DIR1B1
	.globl _DIR1B0
	.globl _ENABLE
	.globl _DIRECTION_M3
	.globl _DIRECTION_M2
	.globl _DIRECTION_M1
	.globl _START
	.globl _LED
	.globl _SPIEN
	.globl _TXBMT
	.globl _NSSMD0
	.globl _NSSMD1
	.globl _RXOVRN
	.globl _MODF
	.globl _WCOL
	.globl _SPIF
	.globl _AD0CM0
	.globl _AD0CM1
	.globl _AD0LJST
	.globl _AD0WINT
	.globl _AD0BUSY
	.globl _AD0INT
	.globl _BURSTEN
	.globl _AD0EN
	.globl _CCF6
	.globl _CCF7
	.globl _CCF8
	.globl _CCF9
	.globl _CCF10
	.globl _CCF11
	.globl _CR1
	.globl _CF1
	.globl _CCF0
	.globl _CCF1
	.globl _CCF2
	.globl _CCF3
	.globl _CCF4
	.globl _CCF5
	.globl _CR
	.globl _CF
	.globl _P
	.globl _F1
	.globl _OV
	.globl _RS0
	.globl _RS1
	.globl _F0
	.globl _AC
	.globl _CY
	.globl _CPRL4
	.globl _CT4
	.globl _TR4
	.globl _EXE4
	.globl _EXF4
	.globl _TF4
	.globl _T2XCLK
	.globl _T2RCLK
	.globl _TR2
	.globl _T2SPLIT
	.globl _TF2CEN
	.globl _TF2LEN
	.globl _TF2L
	.globl _TF2H
	.globl _SI
	.globl _ACK
	.globl _ARBLOST
	.globl _ACKRQ
	.globl _STO
	.globl _STA
	.globl _TXMODE
	.globl _MASTER
	.globl _PX0
	.globl _PT0
	.globl _PX1
	.globl _PT1
	.globl _PS
	.globl _PS0
	.globl _PT2
	.globl _PSPI0
	.globl _EX0
	.globl _ET0
	.globl _EX1
	.globl _ET1
	.globl _ES0
	.globl _ET2
	.globl _ESPI0
	.globl _EA
	.globl _RI1
	.globl _TI1
	.globl _RB81
	.globl _TB81
	.globl _REN1
	.globl _MCE1
	.globl _S1MODE
	.globl _RI0
	.globl _TI0
	.globl _RB80
	.globl _TB80
	.globl _REN0
	.globl _MCE0
	.globl _S0MODE
	.globl _IT0
	.globl _IE0
	.globl _IT1
	.globl _IE1
	.globl _TR0
	.globl _TF0
	.globl _TR1
	.globl _TF1
	.globl _CAN0IF2DB2
	.globl _CAN0IF2DB1
	.globl _CAN0IF2DA2
	.globl _CAN0IF2DA1
	.globl _CAN0IF2MC
	.globl _CAN0IF2A2
	.globl _CAN0IF2A1
	.globl _CAN0IF2M2
	.globl _CAN0IF2M1
	.globl _CAN0IF2CM
	.globl _CAN0IF2CR
	.globl _CAN0IF1DB2
	.globl _CAN0IF1DB1
	.globl _CAN0IF1DA2
	.globl _CAN0IF1DA1
	.globl _CAN0IF1MC
	.globl _CAN0IF1A2
	.globl _CAN0IF1A1
	.globl _CAN0IF1M2
	.globl _CAN0IF1M1
	.globl _CAN0IF1CM
	.globl _CAN0IF1CR
	.globl _CAN0MV2
	.globl _CAN0MV1
	.globl _CAN0IP2
	.globl _CAN0IP1
	.globl _CAN0ND2
	.globl _CAN0ND1
	.globl _CAN0TR2
	.globl _CAN0TR1
	.globl _CAN0IID
	.globl _CAN0BT
	.globl _CAN0ERR
	.globl _PCA1CP10
	.globl _PCA0CP4
	.globl _PCA1CP6
	.globl _PCA0CP0
	.globl _PCA1
	.globl _PCA0
	.globl _PCA1CP9
	.globl _PCA0CP3
	.globl _PCA1CP8
	.globl _PCA0CP2
	.globl _PCA1CP7
	.globl _PCA0CP1
	.globl _PCA1CP11
	.globl _PCA0CP5
	.globl _TMR4
	.globl _TMR2
	.globl _TMR4CAP
	.globl _TMR2RL
	.globl _ADC0LT
	.globl _ADC0GT
	.globl _ADC0
	.globl _SBRL0
	.globl _TMR5
	.globl _TMR3
	.globl _TMR5CAP
	.globl _TMR3RL
	.globl _DP
	.globl _CAN0IF2DB2H
	.globl _CAN0IF2DB2L
	.globl _CAN0IF2DB1H
	.globl _CAN0IF2DB1L
	.globl _CAN0IF2DA2H
	.globl _CAN0IF2DA2L
	.globl _CAN0IF2DA1H
	.globl _CAN0IF2DA1L
	.globl _CAN0IF2A2H
	.globl _CAN0IF2A2L
	.globl _CAN0IF2A1H
	.globl _CAN0IF2A1L
	.globl _CAN0IF2M2H
	.globl _CAN0IF2M2L
	.globl _CAN0IF2M1H
	.globl _CAN0IF2M1L
	.globl _CAN0IF2CMH
	.globl _CAN0IF2CML
	.globl _CAN0IF2CRH
	.globl _CAN0IF2CRL
	.globl _CAN0IF1DB2H
	.globl _CAN0IF1DB2L
	.globl _CAN0IF1DB1H
	.globl _CAN0IF1DB1L
	.globl _CAN0IF1DA2H
	.globl _CAN0IF1DA2L
	.globl _CAN0IF1DA1H
	.globl _CAN0IF1DA1L
	.globl _CAN0IF1MCH
	.globl _CAN0IF1MCL
	.globl _CAN0IF2MCH
	.globl _CAN0IF2MCL
	.globl _CAN0IF1A2H
	.globl _CAN0IF1A2L
	.globl _CAN0IF1A1H
	.globl _CAN0IF1A1L
	.globl _CAN0IF1M2H
	.globl _CAN0IF1M2L
	.globl _CAN0IF1M1H
	.globl _CAN0IF1M1L
	.globl _CAN0IF1CMH
	.globl _CAN0IF1CML
	.globl _CAN0CN
	.globl _CAN0IF1CRH
	.globl _CAN0IF1CRL
	.globl _CAN0MV2H
	.globl _CAN0MV2L
	.globl _CAN0MV1H
	.globl _CAN0MV1L
	.globl _CAN0IP2H
	.globl _CAN0IP2L
	.globl _CAN0IP1H
	.globl _CAN0IP1L
	.globl _CAN0ND2H
	.globl _CAN0ND2L
	.globl _CAN0ND1H
	.globl _CAN0ND1L
	.globl _CAN0TR2H
	.globl _CAN0TR2L
	.globl _CAN0TR1H
	.globl _CAN0TR1L
	.globl _CAN0BRPE
	.globl _CAN0TST
	.globl _CAN0IIDH
	.globl _CAN0IIDL
	.globl _CAN0BTH
	.globl _CAN0BTL
	.globl _CAN0ERRH
	.globl _CAN0ERRL
	.globl _CAN0STAT
	.globl _CAN0CFG
	.globl _VDM0CN
	.globl _PCA1CPH10
	.globl _PCA0CPH4
	.globl _PCA1CPL10
	.globl _PCA0CPL4
	.globl _SN3
	.globl _PCA1CPH6
	.globl _PCA0CPH0
	.globl _SN2
	.globl _PCA1CPL6
	.globl _PCA0CPL0
	.globl _SN1
	.globl _PCA1H
	.globl _PCA0H
	.globl _SN0
	.globl _PCA1L
	.globl _PCA0L
	.globl _SPI0CN
	.globl _EIP2
	.globl _EIP1
	.globl _PSBANK
	.globl _P3MDIN
	.globl _P1MASK
	.globl _P2MDIN
	.globl _P1MAT
	.globl _P1MDIN
	.globl _P0MASK
	.globl _P0MDIN
	.globl _P0MAT
	.globl _B
	.globl _RSTSRC
	.globl _PCA1CPH9
	.globl _PCA0CPH3
	.globl _PCA1CPL9
	.globl _PCA0CPL3
	.globl _PCA1CPH8
	.globl _PCA0CPH2
	.globl _PCA1CPL8
	.globl _PCA0CPL2
	.globl _PCA1CPH7
	.globl _PCA0CPH1
	.globl _PCA1CPL7
	.globl _PCA0CPL1
	.globl _ADC0CN
	.globl _EIE2
	.globl _EIE1
	.globl _IT01CF
	.globl _CCH0CN
	.globl _XBR1
	.globl _XBR0
	.globl _ACC
	.globl _PCA1CPM11
	.globl _PCA0CPM5
	.globl _PCA1CPM10
	.globl _PCA0CPM4
	.globl _PCA1CPM9
	.globl _PCA0CPM3
	.globl _PCA1CPM8
	.globl _PCA0CPM2
	.globl _PCA1CPM7
	.globl _PCA0CPM1
	.globl _PCA1PWM
	.globl _PCA1CPM6
	.globl _PCA0CPM0
	.globl _PCA0PWM
	.globl _PCA1MD
	.globl _PCA0MD
	.globl _PCA1CN
	.globl _PCA0CN
	.globl _P3SKIP
	.globl _P2SKIP
	.globl _P1SKIP
	.globl _P0SKIP
	.globl _LIN0ADR
	.globl _LIN0DAT
	.globl _REF0CN
	.globl _PSW
	.globl _PCA1CPH11
	.globl _PCA0CPH5
	.globl _PCA1CPL11
	.globl _PCA0CPL5
	.globl _TMR4H
	.globl _TMR2H
	.globl _TMR4L
	.globl _TMR2L
	.globl _TMR4CAPH
	.globl _TMR2RLH
	.globl _TMR4CAPL
	.globl _TMR2RLL
	.globl _TMR4CF
	.globl _LIN0CF
	.globl _REG0CN
	.globl _TMR4CN
	.globl _TMR2CN
	.globl _XBR2
	.globl _XBR3
	.globl _ADC0LTH
	.globl _ADC0LTL
	.globl _ADC0GTH
	.globl _ADC0GTL
	.globl _SMB0DAT
	.globl _SMB0CF
	.globl _SMB0CN
	.globl _ADC0H
	.globl _ADC0L
	.globl _ADC0CF
	.globl _ADC0MX
	.globl _SMB0ADM
	.globl _ADC0TK
	.globl _SMB0ADR
	.globl _IP
	.globl _FLKEY
	.globl _FLSCL
	.globl _P4
	.globl _EMI0CF
	.globl _P2MASK
	.globl _P2MAT
	.globl _P3
	.globl _P4MDOUT
	.globl _P3MASK
	.globl _P3MDOUT
	.globl _P3MAT
	.globl _SBRLH0
	.globl _SBRLL0
	.globl _SBCON0
	.globl _EMI0TC
	.globl _EMI0CN
	.globl _SMOD0
	.globl _IE
	.globl _SFRPAGE
	.globl _P2MDOUT
	.globl _P1MDOUT
	.globl _P0MDOUT
	.globl _SPI0DAT
	.globl _OSCICRS
	.globl _SPI0CKR
	.globl _OSCICN
	.globl _SPI0CFG
	.globl _P2
	.globl _OSCXCN
	.globl _CPT1MX
	.globl _OSCIFIN
	.globl _CPT1MD
	.globl _CPT1CN
	.globl _CPT2MX
	.globl _CPT0MX
	.globl _CPT2MD
	.globl _CPT0MD
	.globl _CPT2CN
	.globl _CPT0CN
	.globl _SBUF1
	.globl _SBUF0
	.globl _SCON1
	.globl _SCON0
	.globl _CLKMUL
	.globl _TMR5CF
	.globl _TMR5H
	.globl _TMR3H
	.globl _TMR5L
	.globl _TMR3L
	.globl _TMR5CAPH
	.globl _TMR3RLH
	.globl _TMR5CAPL
	.globl _TMR3RLL
	.globl _TMR5CN
	.globl _TMR3CN
	.globl _P1
	.globl _CLKSEL
	.globl _PSCTL
	.globl _CKCON
	.globl _TH1
	.globl _TH0
	.globl _TL1
	.globl _TL0
	.globl _TMOD
	.globl _TCON
	.globl _PCON
	.globl _SFRLAST
	.globl _SFRNEXT
	.globl _SFR0CN
	.globl _DPH
	.globl _DPL
	.globl _SP
	.globl _P0
	.globl _counter
	.globl _inputcharacter
	.globl _CommissioningState
	.globl _Testbyte
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
	.area RSEG    (ABS,DATA)
	.org 0x0000
G$P0$0$0 == 0x0080
_P0	=	0x0080
G$SP$0$0 == 0x0081
_SP	=	0x0081
G$DPL$0$0 == 0x0082
_DPL	=	0x0082
G$DPH$0$0 == 0x0083
_DPH	=	0x0083
G$SFR0CN$0$0 == 0x0084
_SFR0CN	=	0x0084
G$SFRNEXT$0$0 == 0x0085
_SFRNEXT	=	0x0085
G$SFRLAST$0$0 == 0x0086
_SFRLAST	=	0x0086
G$PCON$0$0 == 0x0087
_PCON	=	0x0087
G$TCON$0$0 == 0x0088
_TCON	=	0x0088
G$TMOD$0$0 == 0x0089
_TMOD	=	0x0089
G$TL0$0$0 == 0x008a
_TL0	=	0x008a
G$TL1$0$0 == 0x008b
_TL1	=	0x008b
G$TH0$0$0 == 0x008c
_TH0	=	0x008c
G$TH1$0$0 == 0x008d
_TH1	=	0x008d
G$CKCON$0$0 == 0x008e
_CKCON	=	0x008e
G$PSCTL$0$0 == 0x008f
_PSCTL	=	0x008f
G$CLKSEL$0$0 == 0x008f
_CLKSEL	=	0x008f
G$P1$0$0 == 0x0090
_P1	=	0x0090
G$TMR3CN$0$0 == 0x0091
_TMR3CN	=	0x0091
G$TMR5CN$0$0 == 0x0091
_TMR5CN	=	0x0091
G$TMR3RLL$0$0 == 0x0092
_TMR3RLL	=	0x0092
G$TMR5CAPL$0$0 == 0x0092
_TMR5CAPL	=	0x0092
G$TMR3RLH$0$0 == 0x0093
_TMR3RLH	=	0x0093
G$TMR5CAPH$0$0 == 0x0093
_TMR5CAPH	=	0x0093
G$TMR3L$0$0 == 0x0094
_TMR3L	=	0x0094
G$TMR5L$0$0 == 0x0094
_TMR5L	=	0x0094
G$TMR3H$0$0 == 0x0095
_TMR3H	=	0x0095
G$TMR5H$0$0 == 0x0095
_TMR5H	=	0x0095
G$TMR5CF$0$0 == 0x0096
_TMR5CF	=	0x0096
G$CLKMUL$0$0 == 0x0097
_CLKMUL	=	0x0097
G$SCON0$0$0 == 0x0098
_SCON0	=	0x0098
G$SCON1$0$0 == 0x0098
_SCON1	=	0x0098
G$SBUF0$0$0 == 0x0099
_SBUF0	=	0x0099
G$SBUF1$0$0 == 0x0099
_SBUF1	=	0x0099
G$CPT0CN$0$0 == 0x009a
_CPT0CN	=	0x009a
G$CPT2CN$0$0 == 0x009a
_CPT2CN	=	0x009a
G$CPT0MD$0$0 == 0x009b
_CPT0MD	=	0x009b
G$CPT2MD$0$0 == 0x009b
_CPT2MD	=	0x009b
G$CPT0MX$0$0 == 0x009c
_CPT0MX	=	0x009c
G$CPT2MX$0$0 == 0x009c
_CPT2MX	=	0x009c
G$CPT1CN$0$0 == 0x009d
_CPT1CN	=	0x009d
G$CPT1MD$0$0 == 0x009e
_CPT1MD	=	0x009e
G$OSCIFIN$0$0 == 0x009e
_OSCIFIN	=	0x009e
G$CPT1MX$0$0 == 0x009f
_CPT1MX	=	0x009f
G$OSCXCN$0$0 == 0x009f
_OSCXCN	=	0x009f
G$P2$0$0 == 0x00a0
_P2	=	0x00a0
G$SPI0CFG$0$0 == 0x00a1
_SPI0CFG	=	0x00a1
G$OSCICN$0$0 == 0x00a1
_OSCICN	=	0x00a1
G$SPI0CKR$0$0 == 0x00a2
_SPI0CKR	=	0x00a2
G$OSCICRS$0$0 == 0x00a2
_OSCICRS	=	0x00a2
G$SPI0DAT$0$0 == 0x00a3
_SPI0DAT	=	0x00a3
G$P0MDOUT$0$0 == 0x00a4
_P0MDOUT	=	0x00a4
G$P1MDOUT$0$0 == 0x00a5
_P1MDOUT	=	0x00a5
G$P2MDOUT$0$0 == 0x00a6
_P2MDOUT	=	0x00a6
G$SFRPAGE$0$0 == 0x00a7
_SFRPAGE	=	0x00a7
G$IE$0$0 == 0x00a8
_IE	=	0x00a8
G$SMOD0$0$0 == 0x00a9
_SMOD0	=	0x00a9
G$EMI0CN$0$0 == 0x00aa
_EMI0CN	=	0x00aa
G$EMI0TC$0$0 == 0x00aa
_EMI0TC	=	0x00aa
G$SBCON0$0$0 == 0x00ab
_SBCON0	=	0x00ab
G$SBRLL0$0$0 == 0x00ac
_SBRLL0	=	0x00ac
G$SBRLH0$0$0 == 0x00ad
_SBRLH0	=	0x00ad
G$P3MAT$0$0 == 0x00ae
_P3MAT	=	0x00ae
G$P3MDOUT$0$0 == 0x00ae
_P3MDOUT	=	0x00ae
G$P3MASK$0$0 == 0x00af
_P3MASK	=	0x00af
G$P4MDOUT$0$0 == 0x00af
_P4MDOUT	=	0x00af
G$P3$0$0 == 0x00b0
_P3	=	0x00b0
G$P2MAT$0$0 == 0x00b1
_P2MAT	=	0x00b1
G$P2MASK$0$0 == 0x00b2
_P2MASK	=	0x00b2
G$EMI0CF$0$0 == 0x00b2
_EMI0CF	=	0x00b2
G$P4$0$0 == 0x00b5
_P4	=	0x00b5
G$FLSCL$0$0 == 0x00b6
_FLSCL	=	0x00b6
G$FLKEY$0$0 == 0x00b7
_FLKEY	=	0x00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CPH10	=	0x00fe
G$VDM0CN$0$0 == 0x00ff
_VDM0CN	=	0x00ff
G$CAN0CFG$0$0 == 0x0092
_CAN0CFG	=	0x0092
G$CAN0STAT$0$0 == 0x0094
_CAN0STAT	=	0x0094
G$CAN0ERRL$0$0 == 0x0096
_CAN0ERRL	=	0x0096
G$CAN0ERRH$0$0 == 0x0097
_CAN0ERRH	=	0x0097
G$CAN0BTL$0$0 == 0x009a
_CAN0BTL	=	0x009a
G$CAN0BTH$0$0 == 0x009b
_CAN0BTH	=	0x009b
G$CAN0IIDL$0$0 == 0x009c
_CAN0IIDL	=	0x009c
G$CAN0IIDH$0$0 == 0x009d
_CAN0IIDH	=	0x009d
G$CAN0TST$0$0 == 0x009e
_CAN0TST	=	0x009e
G$CAN0BRPE$0$0 == 0x00a1
_CAN0BRPE	=	0x00a1
G$CAN0TR1L$0$0 == 0x00a2
_CAN0TR1L	=	0x00a2
G$CAN0TR1H$0$0 == 0x00a3
_CAN0TR1H	=	0x00a3
G$CAN0TR2L$0$0 == 0x00a4
_CAN0TR2L	=	0x00a4
G$CAN0TR2H$0$0 == 0x00a5
_CAN0TR2H	=	0x00a5
G$CAN0ND1L$0$0 == 0x00aa
_CAN0ND1L	=	0x00aa
G$CAN0ND1H$0$0 == 0x00ab
_CAN0ND1H	=	0x00ab
G$CAN0ND2L$0$0 == 0x00ac
_CAN0ND2L	=	0x00ac
G$CAN0ND2H$0$0 == 0x00ad
_CAN0ND2H	=	0x00ad
G$CAN0IP1L$0$0 == 0x00ae
_CAN0IP1L	=	0x00ae
G$CAN0IP1H$0$0 == 0x00af
_CAN0IP1H	=	0x00af
G$CAN0IP2L$0$0 == 0x00b2
_CAN0IP2L	=	0x00b2
G$CAN0IP2H$0$0 == 0x00b3
_CAN0IP2H	=	0x00b3
G$CAN0MV1L$0$0 == 0x00ba
_CAN0MV1L	=	0x00ba
G$CAN0MV1H$0$0 == 0x00bb
_CAN0MV1H	=	0x00bb
G$CAN0MV2L$0$0 == 0x00bc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	0xe3e2
G$CAN0IF2M1$0$0 == 0xebea
_CAN0IF2M1	=	0xebea
G$CAN0IF2M2$0$0 == 0xedec
_CAN0IF2M2	=	0xedec
G$CAN0IF2A1$0$0 == 0xefee
_CAN0IF2A1	=	0xefee
G$CAN0IF2A2$0$0 == 0xf3f2
_CAN0IF2A2	=	0xf3f2
G$CAN0IF2MC$0$0 == 0xf5f4
_CAN0IF2MC	=	0xf5f4
G$CAN0IF2DA1$0$0 == 0xf7f6
_CAN0IF2DA1	=	0xf7f6
G$CAN0IF2DA2$0$0 == 0xfbfa
_CAN0IF2DA2	=	0xfbfa
G$CAN0IF2DB1$0$0 == 0xfdfc
_CAN0IF2DB1	=	0xfdfc
G$CAN0IF2DB2$0$0 == 0xfffe
_CAN0IF2DB2	=	0xfffe
;--------------------------------------------------------
; special function bits
;--------------------------------------------------------
	.area RSEG    (ABS,DATA)
	.org 0x0000
G$TF1$0$0 == 0x008f
_TF1	=	0x008f
G$TR1$0$0 == 0x008e
_TR1	=	0x008e
G$TF0$0$0 == 0x008d
_TF0	=	0x008d
G$TR0$0$0 == 0x008c
_TR0	=	0x008c
G$IE1$0$0 == 0x008b
_IE1	=	0x008b
G$IT1$0$0 == 0x008a
_IT1	=	0x008a
G$IE0$0$0 == 0x0089
_IE0	=	0x0089
G$IT0$0$0 == 0x0088
_IT0	=	0x0088
G$S0MODE$0$0 == 0x009f
_S0MODE	=	0x009f
G$MCE0$0$0 == 0x009d
_MCE0	=	0x009d
G$REN0$0$0 == 0x009c
_REN0	=	0x009c
G$TB80$0$0 == 0x009b
_TB80	=	0x009b
G$RB80$0$0 == 0x009a
_RB80	=	0x009a
G$TI0$0$0 == 0x0099
_TI0	=	0x0099
G$RI0$0$0 == 0x0098
_RI0	=	0x0098
G$S1MODE$0$0 == 0x009f
_S1MODE	=	0x009f
G$MCE1$0$0 == 0x009d
_MCE1	=	0x009d
G$REN1$0$0 == 0x009c
_REN1	=	0x009c
G$TB81$0$0 == 0x009b
_TB81	=	0x009b
G$RB81$0$0 == 0x009a
_RB81	=	0x009a
G$TI1$0$0 == 0x0099
_TI1	=	0x0099
G$RI1$0$0 == 0x0098
_RI1	=	0x0098
G$EA$0$0 == 0x00af
_EA	=	0x00af
G$ESPI0$0$0 == 0x00ae
_ESPI0	=	0x00ae
G$ET2$0$0 == 0x00ad
_ET2	=	0x00ad
G$ES0$0$0 == 0x00ac
_ES0	=	0x00ac
G$ET1$0$0 == 0x00ab
_ET1	=	0x00ab
G$EX1$0$0 == 0x00aa
_EX1	=	0x00aa
G$ET0$0$0 == 0x00a9
_ET0	=	0x00a9
G$EX0$0$0 == 0x00a8
_EX0	=	0x00a8
G$PSPI0$0$0 == 0x00be
_PSPI0	=	0x00be
G$PT2$0$0 == 0x00bd
_PT2	=	0x00bd
G$PS0$0$0 == 0x00bc
_PS0	=	0x00bc
G$PS$0$0 == 0x00bc
_PS	=	0x00bc
G$PT1$0$0 == 0x00bb
_PT1	=	0x00bb
G$PX1$0$0 == 0x00ba
_PX1	=	0x00ba
G$PT0$0$0 == 0x00b9
_PT0	=	0x00b9
G$PX0$0$0 == 0x00b8
_PX0	=	0x00b8
G$MASTER$0$0 == 0x00c7
_MASTER	=	0x00c7
G$TXMODE$0$0 == 0x00c6
_TXMODE	=	0x00c6
G$STA$0$0 == 0x00c5
_STA	=	0x00c5
G$STO$0$0 == 0x00c4
_STO	=	0x00c4
G$ACKRQ$0$0 == 0x00c3
_ACKRQ	=	0x00c3
G$ARBLOST$0$0 == 0x00c2
_ARBLOST	=	0x00c2
G$ACK$0$0 == 0x00c1
_ACK	=	0x00c1
G$SI$0$0 == 0x00c0
_SI	=	0x00c0
G$TF2H$0$0 == 0x00cf
_TF2H	=	0x00cf
G$TF2L$0$0 == 0x00ce
_TF2L	=	0x00ce
G$TF2LEN$0$0 == 0x00cd
_TF2LEN	=	0x00cd
G$TF2CEN$0$0 == 0x00cc
_TF2CEN	=	0x00cc
G$T2SPLIT$0$0 == 0x00cb
_T2SPLIT	=	0x00cb
G$TR2$0$0 == 0x00ca
_TR2	=	0x00ca
G$T2RCLK$0$0 == 0x00c9
_T2RCLK	=	0x00c9
G$T2XCLK$0$0 == 0x00c8
_T2XCLK	=	0x00c8
G$TF4$0$0 == 0x00cf
_TF4	=	0x00cf
G$EXF4$0$0 == 0x00ce
_EXF4	=	0x00ce
G$EXE4$0$0 == 0x00cb
_EXE4	=	0x00cb
G$TR4$0$0 == 0x00ca
_TR4	=	0x00ca
G$CT4$0$0 == 0x00c9
_CT4	=	0x00c9
G$CPRL4$0$0 == 0x00c8
_CPRL4	=	0x00c8
G$CY$0$0 == 0x00d7
_CY	=	0x00d7
G$AC$0$0 == 0x00d6
_AC	=	0x00d6
G$F0$0$0 == 0x00d5
_F0	=	0x00d5
G$RS1$0$0 == 0x00d4
_RS1	=	0x00d4
G$RS0$0$0 == 0x00d3
_RS0	=	0x00d3
G$OV$0$0 == 0x00d2
_OV	=	0x00d2
G$F1$0$0 == 0x00d1
_F1	=	0x00d1
G$P$0$0 == 0x00d0
_P	=	0x00d0
G$CF$0$0 == 0x00df
_CF	=	0x00df
G$CR$0$0 == 0x00de
_CR	=	0x00de
G$CCF5$0$0 == 0x00dd
_CCF5	=	0x00dd
G$CCF4$0$0 == 0x00dc
_CCF4	=	0x00dc
G$CCF3$0$0 == 0x00db
_CCF3	=	0x00db
G$CCF2$0$0 == 0x00da
_CCF2	=	0x00da
G$CCF1$0$0 == 0x00d9
_CCF1	=	0x00d9
G$CCF0$0$0 == 0x00d8
_CCF0	=	0x00d8
G$CF1$0$0 == 0x00df
_CF1	=	0x00df
G$CR1$0$0 == 0x00de
_CR1	=	0x00de
G$CCF11$0$0 == 0x00dd
_CCF11	=	0x00dd
G$CCF10$0$0 == 0x00dc
_CCF10	=	0x00dc
G$CCF9$0$0 == 0x00db
_CCF9	=	0x00db
G$CCF8$0$0 == 0x00da
_CCF8	=	0x00da
G$CCF7$0$0 == 0x00d9
_CCF7	=	0x00d9
G$CCF6$0$0 == 0x00d8
_CCF6	=	0x00d8
G$AD0EN$0$0 == 0x00ef
_AD0EN	=	0x00ef
G$BURSTEN$0$0 == 0x00ee
_BURSTEN	=	0x00ee
G$AD0INT$0$0 == 0x00ed
_AD0INT	=	0x00ed
G$AD0BUSY$0$0 == 0x00ec
_AD0BUSY	=	0x00ec
G$AD0WINT$0$0 == 0x00eb
_AD0WINT	=	0x00eb
G$AD0LJST$0$0 == 0x00ea
_AD0LJST	=	0x00ea
G$AD0CM1$0$0 == 0x00e9
_AD0CM1	=	0x00e9
G$AD0CM0$0$0 == 0x00e8
_AD0CM0	=	0x00e8
G$SPIF$0$0 == 0x00ff
_SPIF	=	0x00ff
G$WCOL$0$0 == 0x00fe
_WCOL	=	0x00fe
G$MODF$0$0 == 0x00fd
_MODF	=	0x00fd
G$RXOVRN$0$0 == 0x00fc
_RXOVRN	=	0x00fc
G$NSSMD1$0$0 == 0x00fb
_NSSMD1	=	0x00fb
G$NSSMD0$0$0 == 0x00fa
_NSSMD0	=	0x00fa
G$TXBMT$0$0 == 0x00f9
_TXBMT	=	0x00f9
G$SPIEN$0$0 == 0x00f8
_SPIEN	=	0x00f8
G$LED$0$0 == 0x00a0
_LED	=	0x00a0
G$START$0$0 == 0x00a1
_START	=	0x00a1
G$DIRECTION_M1$0$0 == 0x00a3
_DIRECTION_M1	=	0x00a3
G$DIRECTION_M2$0$0 == 0x00a4
_DIRECTION_M2	=	0x00a4
G$DIRECTION_M3$0$0 == 0x00a5
_DIRECTION_M3	=	0x00a5
G$ENABLE$0$0 == 0x00a6
_ENABLE	=	0x00a6
G$DIR1B0$0$0 == 0x00b0
_DIR1B0	=	0x00b0
G$DIR1B1$0$0 == 0x00b1
_DIR1B1	=	0x00b1
G$DIR2B0$0$0 == 0x00b2
_DIR2B0	=	0x00b2
G$DIR2B1$0$0 == 0x00b3
_DIR2B1	=	0x00b3
G$DIR3B0$0$0 == 0x00b4
_DIR3B0	=	0x00b4
G$DIR3B1$0$0 == 0x00b5
_DIR3B1	=	0x00b5
G$NSS4$0$0 == 0x0097
_NSS4	=	0x0097
G$ButtonState$0$0==.
_ButtonState::
	.ds 1
;--------------------------------------------------------
; overlayable register banks
;--------------------------------------------------------
	.area REG_BANK_0	(REL,OVR,DATA)
	.ds 8
;--------------------------------------------------------
; overlayable bit register bank
;--------------------------------------------------------
	.area BIT_BANK	(REL,OVR,DATA)
bits:
	.ds 1
	b0 = bits[0]
	b1 = bits[1]
	b2 = bits[2]
	b3 = bits[3]
	b4 = bits[4]
	b5 = bits[5]
	b6 = bits[6]
	b7 = bits[7]
;--------------------------------------------------------
; internal ram data
;--------------------------------------------------------
	.area DSEG    (DATA)
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
;--------------------------------------------------------
; Stack segment in internal ram 
;--------------------------------------------------------
	.area	SSEG
__start__stack:
	.ds	1

;--------------------------------------------------------
; indirectly addressable internal ram data
;--------------------------------------------------------
	.area ISEG    (DATA)
;--------------------------------------------------------
; absolute internal ram data
;--------------------------------------------------------
	.area IABS    (ABS,DATA)
	.area IABS    (ABS,DATA)
;--------------------------------------------------------
; bit data
;--------------------------------------------------------
	.area BSEG    (BIT)
Lmain_bluetooth.Timer2_ISR$sloc0$1$0==.
_Timer2_ISR_sloc0_1_0:
	.ds 1
;--------------------------------------------------------
; paged external ram data
;--------------------------------------------------------
	.area PSEG    (PAG,XDATA)
;--------------------------------------------------------
; external ram data
;--------------------------------------------------------
	.area XSEG    (XDATA)
;--------------------------------------------------------
; absolute external ram data
;--------------------------------------------------------
	.area XABS    (ABS,XDATA)
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
	.area XISEG   (XDATA)
G$Testbyte$0$0==.
_Testbyte::
	.ds 1
G$CommissioningState$0$0==.
_CommissioningState::
	.ds 1
G$inputcharacter$0$0==.
_inputcharacter::
	.ds 1
G$counter$0$0==.
_counter::
	.ds 2
	.area HOME    (CODE)
	.area GSINIT0 (CODE)
	.area GSINIT1 (CODE)
	.area GSINIT2 (CODE)
	.area GSINIT3 (CODE)
	.area GSINIT4 (CODE)
	.area GSINIT5 (CODE)
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area CSEG    (CODE)
;--------------------------------------------------------
; interrupt vector 
;--------------------------------------------------------
	.area HOME    (CODE)
__interrupt_vect:
	ljmp	__sdcc_gsinit_startup
	reti
	.ds	7
	reti
	.ds	7
	reti
	.ds	7
	reti
	.ds	7
	reti
	.ds	7
	ljmp	_Timer2_ISR
	.ds	5
	reti
	.ds	7
	reti
	.ds	7
	reti
	.ds	7
	ljmp	_ADC0_ISR
	.ds	5
	ljmp	_PCA0_ISR
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
	.area HOME    (CODE)
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area GSINIT  (CODE)
	.globl __sdcc_gsinit_startup
	.globl __sdcc_program_startup
	.globl __start__stack
	.globl __mcs51_genXINIT
	.globl __mcs51_genXRAMCLEAR
	.globl __mcs51_genRAMCLEAR
	C$main_bluetooth.c$42$1$127 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:42: BIT ButtonState = FALSE;
	clr	_ButtonState
	.area GSFINAL (CODE)
	ljmp	__sdcc_program_startup
;--------------------------------------------------------
; Home
;--------------------------------------------------------
	.area HOME    (CODE)
	.area HOME    (CODE)
__sdcc_program_startup:
	ljmp	_main
;	return from main will return to caller
;--------------------------------------------------------
; code
;--------------------------------------------------------
	.area CSEG    (CODE)
;------------------------------------------------------------
;Allocation info for local variables in function '_sdcc_external_startup'
;------------------------------------------------------------
	G$_sdcc_external_startup$0$0 ==.
	C$main_bluetooth.c$31$0$0 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:31: U8 _sdcc_external_startup (void)
;	-----------------------------------------
;	 function _sdcc_external_startup
;	-----------------------------------------
__sdcc_external_startup:
	ar7 = 0x07
	ar6 = 0x06
	ar5 = 0x05
	ar4 = 0x04
	ar3 = 0x03
	ar2 = 0x02
	ar1 = 0x01
	ar0 = 0x00
	C$main_bluetooth.c$33$1$71 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:33: Init_Device();
	lcall	_Init_Device
	C$main_bluetooth.c$35$1$71 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:35: return 0;
	mov	dpl,#0x00
	C$main_bluetooth.c$36$1$71 ==.
	XG$_sdcc_external_startup$0$0 ==.
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'main'
;------------------------------------------------------------
;ONOFF                     Allocated with name '_main_ONOFF_1_73'
;ONOFF                     Allocated with name '_main_ONOFF_2_74'
;------------------------------------------------------------
	G$main$0$0 ==.
	C$main_bluetooth.c$46$1$71 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:46: void main (void) {
;	-----------------------------------------
;	 function main
;	-----------------------------------------
_main:
	C$main_bluetooth.c$50$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:50: InitGlobalVariables();
	lcall	_InitGlobalVariables
	C$main_bluetooth.c$51$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:51: InitRotationalSpeedControlVariables();
	lcall	_InitRotationalSpeedControlVariables
	C$main_bluetooth.c$52$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:52: InitKinematicsVariables();
	lcall	_InitKinematicsVariables
	C$main_bluetooth.c$53$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:53: InitTrajectoryControlVariables();
	lcall	_InitTrajectoryControlVariables
	C$main_bluetooth.c$54$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:54: InitPositionControlVariables();
	lcall	_InitPositionControlVariables
	C$main_bluetooth.c$66$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:66: SFRPAGE = ACTIVE_PAGE;              // Change for PCA0MD and SBUF0
	mov	_SFRPAGE,#0x00
	C$main_bluetooth.c$67$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:67: PCA0MD &= ~0x40;                    // Disable the watchdog timer
	mov	r7,_PCA0MD
	mov	a,#0xBF
	anl	a,r7
	mov	_PCA0MD,a
	C$main_bluetooth.c$70$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:70: SYSCLK_Init ();                     // Initialize Oscillator
	lcall	_SYSCLK_Init
	C$main_bluetooth.c$71$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:71: UART0_Init ();
	lcall	_UART0_Init
	C$main_bluetooth.c$74$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:74: ENABLE = 0;	//Enable H-Bridges
	clr	_ENABLE
	C$main_bluetooth.c$75$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:75: NSS4 = 0;	//select SPI slave 4 (C8051F320)
	clr	_NSS4
	C$main_bluetooth.c$76$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:76: LED = 0;	//LED off
	clr	_LED
	C$main_bluetooth.c$78$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:78: while (1) {
00104$:
	C$main_bluetooth.c$83$2$74 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:83: inputcharacter = getkey ();
	lcall	_getkey
	mov	r6,dpl
	mov	dptr,#_inputcharacter
	mov	a,r6
	movx	@dptr,a
	C$main_bluetooth.c$86$2$74 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:86: ONOFF = inputcharacter;
	mov	r7,#0x00
	C$main_bluetooth.c$93$2$74 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:93: if(ONOFF==49){
	cjne	r6,#0x31,00104$
	cjne	r7,#0x00,00104$
	C$main_bluetooth.c$95$3$75 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:95: LED = 1;	//LED off
	setb	_LED
	C$main_bluetooth.c$96$3$75 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:96: ButtonState = TRUE;
	setb	_ButtonState
	sjmp	00104$
	C$main_bluetooth.c$101$1$73 ==.
	XG$main$0$0 ==.
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'Timer2_ISR'
;------------------------------------------------------------
;pX                        Allocated with name '_Timer2_ISR_pX_1_77'
;pY                        Allocated with name '_Timer2_ISR_pY_1_77'
;pG                        Allocated with name '_Timer2_ISR_pG_1_77'
;------------------------------------------------------------
	G$Timer2_ISR$0$0 ==.
	C$main_bluetooth.c$104$1$73 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:104: INTERRUPT(Timer2_ISR, INTERRUPT_TIMER2) {
;	-----------------------------------------
;	 function Timer2_ISR
;	-----------------------------------------
_Timer2_ISR:
	push	bits
	push	acc
	push	b
	push	dpl
	push	dph
	push	(0+7)
	push	(0+6)
	push	(0+5)
	push	(0+4)
	push	(0+3)
	push	(0+2)
	push	(0+1)
	push	(0+0)
	push	psw
	mov	psw,#0x00
	C$main_bluetooth.c$114$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:114: CommissioningState = inputcharacter;
	mov	dptr,#_inputcharacter
	movx	a,@dptr
	mov	dptr,#_CommissioningState
	movx	@dptr,a
	C$main_bluetooth.c$118$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:118: TF2H = 0;
	clr	_TF2H
	C$main_bluetooth.c$120$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:120: GetRotationalSpeeds();
	lcall	_GetRotationalSpeeds
	C$main_bluetooth.c$122$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:122: DirectKinematics();
	lcall	_DirectKinematics
	C$main_bluetooth.c$125$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:125: counter++;
	mov	dptr,#_counter
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
	inc	dptr
	movx	a,@dptr
	addc	a,#0x00
	movx	@dptr,a
	C$main_bluetooth.c$130$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:130: if(counter > 200) {
	mov	dptr,#_counter
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	clr	c
	mov	a,#0xC8
	subb	a,r6
	clr	a
	xrl	a,#0x80
	mov	b,r7
	xrl	b,#0x80
	subb	a,b
	jnc	00102$
	C$main_bluetooth.c$139$2$78 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:139: counter = 0;
	mov	dptr,#_counter
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
00102$:
	C$main_bluetooth.c$143$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:143: switch (CommissioningState) {
	mov	dptr,#_CommissioningState
	movx	a,@dptr
	mov	r7,a
	cjne	r7,#0x12,00221$
	ljmp	00120$
00221$:
	cjne	r7,#0x13,00222$
	ljmp	00121$
00222$:
	cjne	r7,#0x14,00223$
	ljmp	00122$
00223$:
	cjne	r7,#0x15,00224$
	ljmp	00109$
00224$:
	cjne	r7,#0x16,00225$
	ljmp	00110$
00225$:
	cjne	r7,#0x17,00226$
	ljmp	00123$
00226$:
	cjne	r7,#0x18,00227$
	ljmp	00124$
00227$:
	cjne	r7,#0x37,00228$
	sjmp	00107$
00228$:
	cjne	r7,#0x38,00229$
	ljmp	00108$
00229$:
	cjne	r7,#0x39,00230$
	ljmp	00117$
00230$:
	cjne	r7,#0x3A,00231$
	ljmp	00118$
00231$:
	cjne	r7,#0x3B,00232$
	ljmp	00113$
00232$:
	cjne	r7,#0x3C,00233$
	ljmp	00114$
00233$:
	cjne	r7,#0x3D,00234$
	ljmp	00115$
00234$:
	cjne	r7,#0x3E,00235$
	ljmp	00116$
00235$:
	cjne	r7,#0x3F,00236$
	ljmp	00111$
00236$:
	cjne	r7,#0x40,00237$
	ljmp	00112$
00237$:
	cjne	r7,#0x41,00238$
	ljmp	00119$
00238$:
	cjne	r7,#0x53,00239$
	sjmp	00240$
00239$:
	ljmp	00125$
00240$:
	C$main_bluetooth.c$146$3$80 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:146: PCA0CPH3 = 0xFF;
	mov	_PCA0CPH3,#0xFF
	C$main_bluetooth.c$147$3$80 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:147: PCA0CPH4 = 0xFF;
	mov	_PCA0CPH4,#0xFF
	C$main_bluetooth.c$148$3$80 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:148: PCA0CPH5 = 0xFF;
	mov	_PCA0CPH5,#0xFF
	C$main_bluetooth.c$154$3$80 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:154: if (ButtonState && !START) {
	jb	_ButtonState,00241$
	ljmp	00126$
00241$:
	jnb	_START,00242$
	ljmp	00126$
00242$:
	C$main_bluetooth.c$155$4$81 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:155: CommissioningState = CONSTANT_SPEED;
	mov	dptr,#_CommissioningState
	mov	a,#0x03
	movx	@dptr,a
	C$main_bluetooth.c$157$3$80 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:157: break;
	ljmp	00126$
	C$main_bluetooth.c$160$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:160: case Forward:{//k
00107$:
	C$main_bluetooth.c$161$3$82 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:161: ReferenceRotationalSpeed[M1] = 0.0;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$162$3$82 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:162: ReferenceRotationalSpeed[M2] = -2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$163$3$82 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:163: ReferenceRotationalSpeed[M3] = 2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$164$3$82 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:164: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$165$3$82 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:165: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$166$3$82 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:166: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$167$3$82 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:167: break;
	ljmp	00126$
	C$main_bluetooth.c$169$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:169: case Backward:{//M
00108$:
	C$main_bluetooth.c$170$3$83 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:170: ReferenceRotationalSpeed[M1] = 0.0;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$171$3$83 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:171: ReferenceRotationalSpeed[M2] = 2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$172$3$83 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:172: ReferenceRotationalSpeed[M3] = -2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$173$3$83 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:173: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$174$3$83 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:174: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$175$3$83 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:175: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$176$3$83 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:176: break;
	ljmp	00126$
	C$main_bluetooth.c$179$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:179: case Forwardslow:{//z
00109$:
	C$main_bluetooth.c$180$3$84 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:180: ReferenceRotationalSpeed[M1] = 0.0;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$181$3$84 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:181: ReferenceRotationalSpeed[M2] = -2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$182$3$84 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:182: ReferenceRotationalSpeed[M3] = 2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$183$3$84 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:183: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$184$3$84 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:184: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$185$3$84 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:185: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$186$3$84 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:186: break;
	ljmp	00126$
	C$main_bluetooth.c$188$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:188: case Backwardslow:{//h
00110$:
	C$main_bluetooth.c$189$3$85 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:189: ReferenceRotationalSpeed[M1] = 0.0;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$190$3$85 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:190: ReferenceRotationalSpeed[M2] = 2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$191$3$85 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:191: ReferenceRotationalSpeed[M3] = -2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$192$3$85 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:192: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$193$3$85 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:193: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$194$3$85 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:194: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$195$3$85 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:195: break;
	ljmp	00126$
	C$main_bluetooth.c$199$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:199: case RotateR:{//c
00111$:
	C$main_bluetooth.c$200$3$86 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:200: ReferenceRotationalSpeed[M1] = -1.5;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$201$3$86 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:201: ReferenceRotationalSpeed[M2] = -1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$202$3$86 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:202: ReferenceRotationalSpeed[M3] = -1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$203$3$86 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:203: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$204$3$86 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:204: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$205$3$86 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:205: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$206$3$86 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:206: break;
	ljmp	00126$
	C$main_bluetooth.c$208$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:208: case RotateL:{//v
00112$:
	C$main_bluetooth.c$209$3$87 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:209: ReferenceRotationalSpeed[M1] = 1.5;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$210$3$87 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:210: ReferenceRotationalSpeed[M2] = 1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$211$3$87 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:211: ReferenceRotationalSpeed[M3] = 1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$212$3$87 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:212: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$213$3$87 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:213: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$214$3$87 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:214: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$215$3$87 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:215: break;
	ljmp	00126$
	C$main_bluetooth.c$217$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:217: case ForwardR:{//r
00113$:
	C$main_bluetooth.c$218$3$88 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:218: ReferenceRotationalSpeed[M1] = -1;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$219$3$88 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:219: ReferenceRotationalSpeed[M2] = -1-2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$220$3$88 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:220: ReferenceRotationalSpeed[M3] = -1+2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$221$3$88 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:221: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$222$3$88 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:222: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$223$3$88 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:223: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$224$3$88 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:224: break;
	ljmp	00126$
	C$main_bluetooth.c$226$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:226: case ForwardL:{//l
00114$:
	C$main_bluetooth.c$227$3$89 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:227: ReferenceRotationalSpeed[M1] = 1;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$228$3$89 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:228: ReferenceRotationalSpeed[M2] = 1-2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$229$3$89 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:229: ReferenceRotationalSpeed[M3] = 1+2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$230$3$89 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:230: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$231$3$89 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:231: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$232$3$89 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:232: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$233$3$89 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:233: break;
	ljmp	00126$
	C$main_bluetooth.c$235$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:235: case BackwardR:{//n
00115$:
	C$main_bluetooth.c$236$3$90 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:236: ReferenceRotationalSpeed[M1] = 1;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$237$3$90 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:237: ReferenceRotationalSpeed[M2] = 1+2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$238$3$90 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:238: ReferenceRotationalSpeed[M3] = 1-2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$239$3$90 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:239: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$240$3$90 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:240: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$241$3$90 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:241: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$242$3$90 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:242: break;
	ljmp	00126$
	C$main_bluetooth.c$244$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:244: case BackwardL:{//s
00116$:
	C$main_bluetooth.c$245$3$91 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:245: ReferenceRotationalSpeed[M1] = -1;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$246$3$91 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:246: ReferenceRotationalSpeed[M2] = -1+2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$247$3$91 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:247: ReferenceRotationalSpeed[M3] = -1-2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$248$3$91 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:248: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$249$3$91 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:249: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$250$3$91 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:250: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$251$3$91 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:251: break;
	ljmp	00126$
	C$main_bluetooth.c$255$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:255: case GoR:{//x
00117$:
	C$main_bluetooth.c$256$3$92 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:256: ReferenceRotationalSpeed[M1] = -2;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$257$3$92 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:257: ReferenceRotationalSpeed[M2] = 0.5*2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$258$3$92 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:258: ReferenceRotationalSpeed[M3] = 0.5*2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$259$3$92 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:259: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$260$3$92 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:260: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$261$3$92 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:261: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$262$3$92 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:262: break;
	ljmp	00126$
	C$main_bluetooth.c$264$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:264: case GoL:{//y
00118$:
	C$main_bluetooth.c$265$3$93 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:265: ReferenceRotationalSpeed[M1] = 2;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$266$3$93 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:266: ReferenceRotationalSpeed[M2] = -0.5*2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$267$3$93 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:267: ReferenceRotationalSpeed[M3] = -0.5*2;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x80
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$268$3$93 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:268: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$269$3$93 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:269: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$270$3$93 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:270: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$271$3$93 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:271: break;
	ljmp	00126$
	C$main_bluetooth.c$273$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:273: case ForwardR2:{//e
00119$:
	C$main_bluetooth.c$274$3$94 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:274: ReferenceRotationalSpeed[M1] = -2;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$275$3$94 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:275: ReferenceRotationalSpeed[M2] = 0.5*2-1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$276$3$94 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:276: ReferenceRotationalSpeed[M3] = 0.5*2+1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x20
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$277$3$94 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:277: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$278$3$94 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:278: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$279$3$94 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:279: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$280$3$94 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:280: break;
	ljmp	00126$
	C$main_bluetooth.c$282$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:282: case ForwardL2:{//q
00120$:
	C$main_bluetooth.c$283$3$95 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:283: ReferenceRotationalSpeed[M1] = 2;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$284$3$95 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:284: ReferenceRotationalSpeed[M2] = -0.5*2-1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x20
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$285$3$95 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:285: ReferenceRotationalSpeed[M3] = -0.5*2+1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$286$3$95 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:286: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$287$3$95 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:287: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$288$3$95 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:288: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$289$3$95 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:289: break;
	ljmp	00126$
	C$main_bluetooth.c$291$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:291: case BackwardR2:{//d
00121$:
	C$main_bluetooth.c$292$3$96 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:292: ReferenceRotationalSpeed[M1] = -2;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$293$3$96 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:293: ReferenceRotationalSpeed[M2] = 0.5*2+1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x20
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$294$3$96 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:294: ReferenceRotationalSpeed[M3] = 0.5*2-1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xBF
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$295$3$96 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:295: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$296$3$96 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:296: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$297$3$96 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:297: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$298$3$96 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:298: break;
	ljmp	00126$
	C$main_bluetooth.c$300$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:300: case BackwardL2:{//a
00122$:
	C$main_bluetooth.c$301$3$97 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:301: ReferenceRotationalSpeed[M1] = 2;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$302$3$97 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:302: ReferenceRotationalSpeed[M2] = -0.5*2+1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x3F
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$303$3$97 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:303: ReferenceRotationalSpeed[M3] = -0.5*2-1.5;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0x20
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$304$3$97 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:304: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$305$3$97 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:305: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$306$3$97 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:306: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$307$3$97 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:307: break;
	ljmp	00126$
	C$main_bluetooth.c$309$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:309: case NOS:{//p
00123$:
	C$main_bluetooth.c$310$3$98 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:310: ReferenceRotationalSpeed[M1] = 0.0;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$311$3$98 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:311: ReferenceRotationalSpeed[M2] = -7;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xE0
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$312$3$98 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:312: ReferenceRotationalSpeed[M3] = 7;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xE0
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$313$3$98 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:313: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$314$3$98 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:314: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$315$3$98 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:315: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$316$3$98 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:316: break;
	C$main_bluetooth.c$319$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:319: case NOSback:{//u
	sjmp	00126$
00124$:
	C$main_bluetooth.c$320$3$99 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:320: ReferenceRotationalSpeed[M1] = 0.0;
	mov	dptr,#_ReferenceRotationalSpeed
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$321$3$99 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:321: ReferenceRotationalSpeed[M2] = 7;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0004)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xE0
	inc	dptr
	movx	@dptr,a
	mov	a,#0x40
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$322$3$99 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:322: ReferenceRotationalSpeed[M3] = -7;
	mov	dptr,#(_ReferenceRotationalSpeed + 0x0008)
	clr	a
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	mov	a,#0xE0
	inc	dptr
	movx	@dptr,a
	mov	a,#0xC0
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$323$3$99 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:323: RotationalSpeedControl(M1);
	mov	dpl,#0x00
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$324$3$99 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:324: RotationalSpeedControl(M2);
	mov	dpl,#0x01
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$325$3$99 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:325: RotationalSpeedControl(M3);
	mov	dpl,#0x02
	lcall	_RotationalSpeedControl
	C$main_bluetooth.c$326$3$99 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:326: break;
	C$main_bluetooth.c$329$2$79 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:329: default: {
	sjmp	00126$
00125$:
	C$main_bluetooth.c$330$3$100 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:330: CommissioningState = SPI_TEST;
	mov	dptr,#_CommissioningState
	clr	a
	movx	@dptr,a
	C$main_bluetooth.c$332$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:332: }
00126$:
	C$main_bluetooth.c$333$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:333: switch (ButtonState) {
	mov	c,_ButtonState
	mov  _Timer2_ISR_sloc0_1_0,c
	clr	a
	rlc	a
	mov	r7,a
	jz	00127$
	C$main_bluetooth.c$334$2$101 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:334: case FALSE: {
	cjne	r7,#0x01,00133$
	sjmp	00130$
00127$:
	C$main_bluetooth.c$335$3$102 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:335: if (START) {
	jnb	_START,00134$
	C$main_bluetooth.c$336$4$103 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:336: ButtonState = TRUE;
	setb	_ButtonState
	C$main_bluetooth.c$338$3$102 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:338: break;
	C$main_bluetooth.c$340$2$101 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:340: case TRUE: {
	sjmp	00134$
00130$:
	C$main_bluetooth.c$341$3$104 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:341: if (!START) {
	jb	_START,00134$
	C$main_bluetooth.c$342$4$105 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:342: ButtonState = FALSE;
	clr	_ButtonState
	C$main_bluetooth.c$344$3$104 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:344: break;
	C$main_bluetooth.c$346$2$101 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:346: default: {
	sjmp	00134$
00133$:
	C$main_bluetooth.c$347$3$106 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:347: ButtonState = FALSE;
	clr	_ButtonState
	C$main_bluetooth.c$349$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:349: }
00134$:
	C$main_bluetooth.c$351$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:351: PrepareNextRotationalSpeedMeasurement();
	lcall	_PrepareNextRotationalSpeedMeasurement
	C$main_bluetooth.c$353$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:353: if (CommissioningState != SPI_TEST) {
	mov	dptr,#_CommissioningState
	movx	a,@dptr
	mov	r7,a
	jz	00137$
	C$main_bluetooth.c$354$2$107 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:354: ADC_CHANNEL = CHANNEL_I_MOTOR1;
	mov	_ADC0MX,#0x00
	C$main_bluetooth.c$355$2$107 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:355: START_AD_CONVERSION;
	setb	_AD0BUSY
00137$:
	pop	psw
	pop	(0+0)
	pop	(0+1)
	pop	(0+2)
	pop	(0+3)
	pop	(0+4)
	pop	(0+5)
	pop	(0+6)
	pop	(0+7)
	pop	dph
	pop	dpl
	pop	b
	pop	acc
	pop	bits
	C$main_bluetooth.c$363$1$77 ==.
	XG$Timer2_ISR$0$0 ==.
	reti
;------------------------------------------------------------
;Allocation info for local variables in function 'PCA0_ISR'
;------------------------------------------------------------
	G$PCA0_ISR$0$0 ==.
	C$main_bluetooth.c$366$1$77 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:366: INTERRUPT(PCA0_ISR, INTERRUPT_PCA0) {
;	-----------------------------------------
;	 function PCA0_ISR
;	-----------------------------------------
_PCA0_ISR:
	push	acc
	push	dpl
	push	dph
	push	ar7
	push	ar6
	push	psw
	mov	psw,#0x00
	C$main_bluetooth.c$375$1$109 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:375: if (CCF0) { //CapComp Module 0 has triggered the interrupt
	jnb	_CCF0,00110$
	C$main_bluetooth.c$379$2$110 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:379: if (CF) { //CF: Overflow flag
	jnb	_CF,00104$
	C$main_bluetooth.c$382$3$111 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:382: if (PCA0CP0 < PCA0CP0_Count1.U16[LSB]) {
	mov	dptr,#_PCA0CP0_Count1
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	clr	c
	mov	a,((_PCA0CP0 >> 0) & 0xFF)
	subb	a,r6
	mov	a,((_PCA0CP0 >> 8) & 0xFF)
	subb	a,r7
	jnc	00104$
	C$main_bluetooth.c$383$4$112 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:383: PCA0_Overflow++;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
	inc	dptr
	movx	a,@dptr
	addc	a,#0x00
	movx	@dptr,a
	C$main_bluetooth.c$384$4$112 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:384: CF = 0;
	clr	_CF
00104$:
	C$main_bluetooth.c$389$2$110 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:389: if (PCA0CP0_EdgeCount == 0) {
	mov	dptr,#_PCA0CP0_EdgeCount
	movx	a,@dptr
	mov	r7,a
	jnz	00106$
	C$main_bluetooth.c$390$3$113 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:390: PCA0CP0_Count1.U16[MSB] = PCA0_Overflow;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	dptr,#(_PCA0CP0_Count1 + 0x0002)
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$391$3$113 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:391: PCA0CP0_Count1.U16[LSB] = PCA0CP0;
	mov	dptr,#_PCA0CP0_Count1
	mov	a,((_PCA0CP0 >> 0) & 0xFF)
	movx	@dptr,a
	mov	a,((_PCA0CP0 >> 8) & 0xFF)
	inc	dptr
	movx	@dptr,a
00106$:
	C$main_bluetooth.c$393$2$110 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:393: if (PCA0CP0_EdgeCount == 1) {
	mov	dptr,#_PCA0CP0_EdgeCount
	movx	a,@dptr
	mov	r7,a
	cjne	r7,#0x01,00108$
	C$main_bluetooth.c$394$3$114 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:394: PCA0CP0_Count2.U16[MSB] = PCA0_Overflow;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	dptr,#(_PCA0CP0_Count2 + 0x0002)
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$395$3$114 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:395: PCA0CP0_Count2.U16[LSB] = PCA0CP0;
	mov	dptr,#_PCA0CP0_Count2
	mov	a,((_PCA0CP0 >> 0) & 0xFF)
	movx	@dptr,a
	mov	a,((_PCA0CP0 >> 8) & 0xFF)
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$397$3$114 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:397: PCA0CPM0 = PCA0CPM0 & ~0x01; //Disable CCF0 interrupt
	mov	r7,_PCA0CPM0
	mov	a,#0xFE
	anl	a,r7
	mov	_PCA0CPM0,a
00108$:
	C$main_bluetooth.c$399$2$110 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:399: CCF0 = 0; //Clear Module 0 capture flag
	clr	_CCF0
	C$main_bluetooth.c$400$2$110 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:400: PCA0CP0_EdgeCount++;
	mov	dptr,#_PCA0CP0_EdgeCount
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
00110$:
	C$main_bluetooth.c$404$1$109 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:404: if (CCF1) { //CapComp Module 1 has triggered the interrupt
	jnb	_CCF1,00120$
	C$main_bluetooth.c$405$2$115 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:405: if (CF) { //CF: Overflow flag
	jnb	_CF,00114$
	C$main_bluetooth.c$406$3$116 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:406: if (PCA0CP1 < PCA0CP1_Count1.U16[LSB]) {
	mov	dptr,#_PCA0CP1_Count1
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	clr	c
	mov	a,((_PCA0CP1 >> 0) & 0xFF)
	subb	a,r6
	mov	a,((_PCA0CP1 >> 8) & 0xFF)
	subb	a,r7
	jnc	00114$
	C$main_bluetooth.c$407$4$117 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:407: PCA0_Overflow++;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
	inc	dptr
	movx	a,@dptr
	addc	a,#0x00
	movx	@dptr,a
	C$main_bluetooth.c$408$4$117 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:408: CF = 0;
	clr	_CF
00114$:
	C$main_bluetooth.c$413$2$115 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:413: if (PCA0CP1_EdgeCount == 0) {
	mov	dptr,#_PCA0CP1_EdgeCount
	movx	a,@dptr
	mov	r7,a
	jnz	00116$
	C$main_bluetooth.c$414$3$118 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:414: PCA0CP1_Count1.U16[MSB] = PCA0_Overflow;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	dptr,#(_PCA0CP1_Count1 + 0x0002)
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$415$3$118 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:415: PCA0CP1_Count1.U16[LSB] = PCA0CP1;
	mov	dptr,#_PCA0CP1_Count1
	mov	a,((_PCA0CP1 >> 0) & 0xFF)
	movx	@dptr,a
	mov	a,((_PCA0CP1 >> 8) & 0xFF)
	inc	dptr
	movx	@dptr,a
00116$:
	C$main_bluetooth.c$417$2$115 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:417: if (PCA0CP1_EdgeCount == 1) {
	mov	dptr,#_PCA0CP1_EdgeCount
	movx	a,@dptr
	mov	r7,a
	cjne	r7,#0x01,00118$
	C$main_bluetooth.c$418$3$119 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:418: PCA0CP1_Count2.U16[MSB] = PCA0_Overflow;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	dptr,#(_PCA0CP1_Count2 + 0x0002)
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$419$3$119 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:419: PCA0CP1_Count2.U16[LSB] = PCA0CP1;
	mov	dptr,#_PCA0CP1_Count2
	mov	a,((_PCA0CP1 >> 0) & 0xFF)
	movx	@dptr,a
	mov	a,((_PCA0CP1 >> 8) & 0xFF)
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$421$3$119 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:421: PCA0CPM1 = PCA0CPM1 & ~0x01; //Disable CCF1 interrupt
	mov	r7,_PCA0CPM1
	mov	a,#0xFE
	anl	a,r7
	mov	_PCA0CPM1,a
00118$:
	C$main_bluetooth.c$423$2$115 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:423: CCF1 = 0; //Clear Module 1 capture flag
	clr	_CCF1
	C$main_bluetooth.c$424$2$115 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:424: PCA0CP1_EdgeCount++;
	mov	dptr,#_PCA0CP1_EdgeCount
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
00120$:
	C$main_bluetooth.c$428$1$109 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:428: if (CCF2) { //CapComp Module 2 has triggered the interrupt
	jnb	_CCF2,00130$
	C$main_bluetooth.c$429$2$120 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:429: if (CF) { //CF: Overflow flag
	jnb	_CF,00124$
	C$main_bluetooth.c$430$3$121 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:430: if (PCA0CP2 < PCA0CP2_Count1.U16[LSB]) {
	mov	dptr,#_PCA0CP2_Count1
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	clr	c
	mov	a,((_PCA0CP2 >> 0) & 0xFF)
	subb	a,r6
	mov	a,((_PCA0CP2 >> 8) & 0xFF)
	subb	a,r7
	jnc	00124$
	C$main_bluetooth.c$431$4$122 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:431: PCA0_Overflow++;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
	inc	dptr
	movx	a,@dptr
	addc	a,#0x00
	movx	@dptr,a
	C$main_bluetooth.c$432$4$122 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:432: CF = 0;
	clr	_CF
00124$:
	C$main_bluetooth.c$437$2$120 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:437: if (PCA0CP2_EdgeCount == 0) {
	mov	dptr,#_PCA0CP2_EdgeCount
	movx	a,@dptr
	mov	r7,a
	jnz	00126$
	C$main_bluetooth.c$438$3$123 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:438: PCA0CP2_Count1.U16[MSB] = PCA0_Overflow;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	dptr,#(_PCA0CP2_Count1 + 0x0002)
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$439$3$123 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:439: PCA0CP2_Count1.U16[LSB] = PCA0CP2;
	mov	dptr,#_PCA0CP2_Count1
	mov	a,((_PCA0CP2 >> 0) & 0xFF)
	movx	@dptr,a
	mov	a,((_PCA0CP2 >> 8) & 0xFF)
	inc	dptr
	movx	@dptr,a
00126$:
	C$main_bluetooth.c$441$2$120 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:441: if (PCA0CP2_EdgeCount == 1) {
	mov	dptr,#_PCA0CP2_EdgeCount
	movx	a,@dptr
	mov	r7,a
	cjne	r7,#0x01,00128$
	C$main_bluetooth.c$442$3$124 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:442: PCA0CP2_Count2.U16[MSB] = PCA0_Overflow;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	mov	dptr,#(_PCA0CP2_Count2 + 0x0002)
	mov	a,r6
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$443$3$124 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:443: PCA0CP2_Count2.U16[LSB] = PCA0CP2;
	mov	dptr,#_PCA0CP2_Count2
	mov	a,((_PCA0CP2 >> 0) & 0xFF)
	movx	@dptr,a
	mov	a,((_PCA0CP2 >> 8) & 0xFF)
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$445$3$124 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:445: PCA0CPM2 = PCA0CPM2 & ~0x01; //Disable CCF2 interrupt
	mov	r7,_PCA0CPM2
	mov	a,#0xFE
	anl	a,r7
	mov	_PCA0CPM2,a
00128$:
	C$main_bluetooth.c$447$2$120 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:447: CCF2 = 0; //Clear Module 2 capture flag
	clr	_CCF2
	C$main_bluetooth.c$448$2$120 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:448: PCA0CP2_EdgeCount++;
	mov	dptr,#_PCA0CP2_EdgeCount
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
00130$:
	C$main_bluetooth.c$451$1$109 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:451: if (CF) { //'Counter Overflow' has triggered the interrupt
	C$main_bluetooth.c$452$2$125 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:452: CF = 0;	//Clear Overflow flag
	jbc	_CF,00201$
	sjmp	00133$
00201$:
	C$main_bluetooth.c$453$2$125 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:453: PCA0_Overflow++;
	mov	dptr,#_PCA0_Overflow
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
	inc	dptr
	movx	a,@dptr
	addc	a,#0x00
	movx	@dptr,a
00133$:
	pop	psw
	pop	ar6
	pop	ar7
	pop	dph
	pop	dpl
	pop	acc
	C$main_bluetooth.c$461$1$109 ==.
	XG$PCA0_ISR$0$0 ==.
	reti
;	eliminated unneeded push/pop b
;------------------------------------------------------------
;Allocation info for local variables in function 'ADC0_ISR'
;------------------------------------------------------------
	G$ADC0_ISR$0$0 ==.
	C$main_bluetooth.c$465$1$109 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:465: INTERRUPT (ADC0_ISR, INTERRUPT_ADC0_EOC) {
;	-----------------------------------------
;	 function ADC0_ISR
;	-----------------------------------------
_ADC0_ISR:
	push	bits
	push	acc
	push	b
	push	dpl
	push	dph
	push	(0+7)
	push	(0+6)
	push	(0+5)
	push	(0+4)
	push	(0+3)
	push	(0+2)
	push	(0+1)
	push	(0+0)
	push	psw
	mov	psw,#0x00
	C$main_bluetooth.c$473$1$127 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:473: AD0INT = 0;
	clr	_AD0INT
	C$main_bluetooth.c$475$1$127 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:475: switch (ADC_CHANNEL) {
	mov	a,_ADC0MX
	mov	r7,a
	add	a,#0xff - 0x03
	jnc	00112$
	ljmp	00105$
00112$:
	mov	a,r7
	add	a,r7
	add	a,r7
	mov	dptr,#00113$
	jmp	@a+dptr
00113$:
	ljmp	00101$
	ljmp	00102$
	ljmp	00103$
	ljmp	00104$
	C$main_bluetooth.c$476$2$128 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:476: case 0x00: {
00101$:
	C$main_bluetooth.c$477$3$129 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:477: MeasuredMotorCurrent[0] = (F32)ADC0;
	mov	dpl,((_ADC0 >> 0) & 0xFF)
	mov	dph,((_ADC0 >> 8) & 0xFF)
	lcall	___uint2fs
	mov	r4,dpl
	mov	r5,dph
	mov	r6,b
	mov	r7,a
	mov	dptr,#_MeasuredMotorCurrent
	mov	a,r4
	movx	@dptr,a
	mov	a,r5
	inc	dptr
	movx	@dptr,a
	mov	a,r6
	inc	dptr
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$479$3$129 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:479: SPI0DAT = (U8)(ADC0 >> 4);
	mov	r6,((_ADC0 >> 0) & 0xFF)
	mov	a,((_ADC0 >> 8) & 0xFF)
	swap	a
	xch	a,r6
	swap	a
	anl	a,#0x0F
	xrl	a,r6
	xch	a,r6
	anl	a,#0x0F
	xch	a,r6
	xrl	a,r6
	xch	a,r6
	mov	r7,a
	mov	_SPI0DAT,r6
	C$main_bluetooth.c$481$3$129 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:481: ADC_CHANNEL = CHANNEL_I_MOTOR2;
	mov	_ADC0MX,#0x01
	C$main_bluetooth.c$482$3$129 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:482: AD0BUSY = 1;
	setb	_AD0BUSY
	C$main_bluetooth.c$483$3$129 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:483: break;
	ljmp	00107$
	C$main_bluetooth.c$485$2$128 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:485: case 0x01: {
00102$:
	C$main_bluetooth.c$486$3$130 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:486: MeasuredMotorCurrent[1] = (F32)ADC0;
	mov	dpl,((_ADC0 >> 0) & 0xFF)
	mov	dph,((_ADC0 >> 8) & 0xFF)
	lcall	___uint2fs
	mov	r4,dpl
	mov	r5,dph
	mov	r6,b
	mov	r7,a
	mov	dptr,#(_MeasuredMotorCurrent + 0x0004)
	mov	a,r4
	movx	@dptr,a
	mov	a,r5
	inc	dptr
	movx	@dptr,a
	mov	a,r6
	inc	dptr
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$488$3$130 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:488: SPI0DAT = (U8)(ADC0 >> 4);
	mov	r6,((_ADC0 >> 0) & 0xFF)
	mov	a,((_ADC0 >> 8) & 0xFF)
	swap	a
	xch	a,r6
	swap	a
	anl	a,#0x0F
	xrl	a,r6
	xch	a,r6
	anl	a,#0x0F
	xch	a,r6
	xrl	a,r6
	xch	a,r6
	mov	r7,a
	mov	_SPI0DAT,r6
	C$main_bluetooth.c$490$3$130 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:490: ADC_CHANNEL = CHANNEL_I_MOTOR3;
	mov	_ADC0MX,#0x02
	C$main_bluetooth.c$491$3$130 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:491: AD0BUSY = 1;
	setb	_AD0BUSY
	C$main_bluetooth.c$492$3$130 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:492: break;
	C$main_bluetooth.c$494$2$128 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:494: case 0x02: {
	sjmp	00107$
00103$:
	C$main_bluetooth.c$495$3$131 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:495: MeasuredMotorCurrent[2] = (F32)ADC0;
	mov	dpl,((_ADC0 >> 0) & 0xFF)
	mov	dph,((_ADC0 >> 8) & 0xFF)
	lcall	___uint2fs
	mov	r4,dpl
	mov	r5,dph
	mov	r6,b
	mov	r7,a
	mov	dptr,#(_MeasuredMotorCurrent + 0x0008)
	mov	a,r4
	movx	@dptr,a
	mov	a,r5
	inc	dptr
	movx	@dptr,a
	mov	a,r6
	inc	dptr
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$497$3$131 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:497: SPI0DAT = (U8)(ADC0 >> 4);
	mov	r6,((_ADC0 >> 0) & 0xFF)
	mov	a,((_ADC0 >> 8) & 0xFF)
	swap	a
	xch	a,r6
	swap	a
	anl	a,#0x0F
	xrl	a,r6
	xch	a,r6
	anl	a,#0x0F
	xch	a,r6
	xrl	a,r6
	xch	a,r6
	mov	r7,a
	mov	_SPI0DAT,r6
	C$main_bluetooth.c$499$3$131 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:499: ADC_CHANNEL = CHANNEL_BATTERY_VOLTAGE;
	mov	_ADC0MX,#0x03
	C$main_bluetooth.c$500$3$131 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:500: AD0BUSY = 1;
	setb	_AD0BUSY
	C$main_bluetooth.c$501$3$131 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:501: break;
	C$main_bluetooth.c$503$2$128 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:503: case 0x03: {
	sjmp	00107$
00104$:
	C$main_bluetooth.c$504$1$127 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:504: MeasuredBatteryVoltage = (F32)ADC0;
	mov	dpl,((_ADC0 >> 0) & 0xFF)
	mov	dph,((_ADC0 >> 8) & 0xFF)
	lcall	___uint2fs
	mov	r4,dpl
	mov	r5,dph
	mov	r6,b
	mov	r7,a
	mov	dptr,#_MeasuredBatteryVoltage
	mov	a,r4
	movx	@dptr,a
	mov	a,r5
	inc	dptr
	movx	@dptr,a
	mov	a,r6
	inc	dptr
	movx	@dptr,a
	mov	a,r7
	inc	dptr
	movx	@dptr,a
	C$main_bluetooth.c$506$3$132 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:506: SPI0DAT = (U8)(ADC0 >> 4);
	mov	r6,((_ADC0 >> 0) & 0xFF)
	mov	a,((_ADC0 >> 8) & 0xFF)
	swap	a
	xch	a,r6
	swap	a
	anl	a,#0x0F
	xrl	a,r6
	xch	a,r6
	anl	a,#0x0F
	xch	a,r6
	xrl	a,r6
	xch	a,r6
	mov	r7,a
	mov	_SPI0DAT,r6
	C$main_bluetooth.c$508$3$132 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:508: ADC_CHANNEL = CHANNEL_I_MOTOR1;
	mov	_ADC0MX,#0x00
	C$main_bluetooth.c$509$3$132 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:509: break;
	C$main_bluetooth.c$511$2$128 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:511: default: {
	sjmp	00107$
00105$:
	C$main_bluetooth.c$512$3$133 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:512: ADC_CHANNEL = CHANNEL_I_MOTOR1;
	mov	_ADC0MX,#0x00
	C$main_bluetooth.c$514$1$127 ==.
;	Z:\svn\RobotSoftware_bluetooth\Source\main_bluetooth.c:514: }
00107$:
	pop	psw
	pop	(0+0)
	pop	(0+1)
	pop	(0+2)
	pop	(0+3)
	pop	(0+4)
	pop	(0+5)
	pop	(0+6)
	pop	(0+7)
	pop	dph
	pop	dpl
	pop	b
	pop	acc
	pop	bits
	C$main_bluetooth.c$521$1$127 ==.
	XG$ADC0_ISR$0$0 ==.
	reti
	.area CSEG    (CODE)
	.area CONST   (CODE)
	.area XINIT   (CODE)
Fmain_bluetooth$__xinit_Testbyte$0$0 == .
__xinit__Testbyte:
	.db #0x00	; 0
Fmain_bluetooth$__xinit_CommissioningState$0$0 == .
__xinit__CommissioningState:
	.db #0x00	; 0
Fmain_bluetooth$__xinit_inputcharacter$0$0 == .
__xinit__inputcharacter:
	.db #0x00	; 0
Fmain_bluetooth$__xinit_counter$0$0 == .
__xinit__counter:
	.byte #0x00,#0x00	;  0
	.area CABS    (ABS,CODE)
